import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { DemoVO, DemoForm, DemoQuery } from '@/api/system/workArr/types';

/**
 * 查询作品列表
 * @param query
 * @returns {*}
 */
export const worksGet = (query?: DemoQuery): AxiosPromise<DemoVO[]> => {
  return request({
    url: '/works/list',
    method: 'get',
    params: query
  });
};

/**
 * 删除作品
 * @param ids
 */
export const delDemo = (ids: string | number | Array<string | number>) => {
  return request({
    url: '/works/' + ids,
    method: 'delete'
  });
};
